package com.flyco.modules.mdm.entity;

import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import com.flyco.poi.excel.annotation.Excel;

/**
 * @Description: 客户地址
 * @Author: flyco
 * @Date:   2022-04-17
 * @Version: V1.0
 */
@Data
@TableName("customer_address")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="customer_address对象", description="客户地址")
public class CustomerAddress {
    
	/**id*/
	@TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "id")
	private Long id;
	/**客戶id*/
	@Excel(name = "客戶id", width = 15)
    @ApiModelProperty(value = "客戶id")
	private Long customerId;
	/**customerCode*/
	@Excel(name = "customerCode", width = 15)
    @ApiModelProperty(value = "customerCode")
	private String customerCode;
	/**详细地址*/
	@Excel(name = "详细地址", width = 15)
    @ApiModelProperty(value = "详细地址")
	private String address;
	/**手机*/
	@Excel(name = "手机", width = 15)
    @ApiModelProperty(value = "手机")
	private String mobile;
	/**收货人*/
	@Excel(name = "收货人", width = 15)
    @ApiModelProperty(value = "收货人")
	private String consignee;
	/**省*/
	@Excel(name = "省", width = 15)
    @ApiModelProperty(value = "省")
	private String province;
	/**市*/
	@Excel(name = "市", width = 15)
    @ApiModelProperty(value = "市")
	private String city;
	/**区/县*/
	@Excel(name = "区/县", width = 15)
    @ApiModelProperty(value = "区/县")
	private String area;
	/**是否是默认地址-(互斥同一客戶下只有一个默认)*/
	@Excel(name = "是否是默认地址-(互斥同一客戶下只有一个默认)", width = 15)
    @ApiModelProperty(value = "是否是默认地址-(互斥同一客戶下只有一个默认)")
	private Integer isDefault;
	/**是否已刪除*/
	@Excel(name = "是否已刪除", width = 15)
    @ApiModelProperty(value = "是否已刪除")
	private Integer isDeleted;
	/**创建时间*/
	@Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
	private Date createTime;
	/**创建人*/
	@Excel(name = "创建人", width = 15)
    @ApiModelProperty(value = "创建人")
	private String createBy;
	/**更新时间*/
	@Excel(name = "更新时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
	private Date updateTime;
	/**更新人*/
	@Excel(name = "更新人", width = 15)
    @ApiModelProperty(value = "更新人")
	private String updateBy;
	/**系统备注*/
	@Excel(name = "系统备注", width = 15)
    @ApiModelProperty(value = "系统备注")
	private String sysRemark;
}
